package com.wqm.step.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wqm.step.dao.ManyToManyDao;
import com.wqm.step.pojo.Student;
import com.wqm.step.pojo.Teacher;
import com.wqm.step.service.ManyToManyService;

@Service
public class ManyToManyServiceImpl implements ManyToManyService {

	@Autowired
	private ManyToManyDao manyToManyDao;
	
	public void saveManyToMany(Teacher t1, Teacher t2, Student s1, Student s2) {
		manyToManyDao.saveManyToMany(t1, t2, s1, s2);
	}

	public void deleteData(Integer id) {
		manyToManyDao.deleteData(id);
	}

}
